﻿<?php
require_once('db/database.php');
require_once('playlist/PlaylistManager.php');
require_once('user/UserManager.php');
require_once('player/player.php');

/*
 * System.
 */
class System {
	
	public $database = null;
	public $playlistManager = null;
	public $userManager = null;
	public $playerManager = null;

	/*
	 * Constructora que inicializa los sub-módulos.
	 */
	public function __construct() {
		$this->database = new Database();
		$this->playlistManager = new PlaylistManager($this);
		$this->userManager = new UserManager($this);
		$this->playerManager = new PlayerManager($this);
	}
	
	public function install() {
		$this->database->install();
	}
}
?>